import { HttpException, HttpStatus } from '@nestjs/common';

export class HttpErrorException extends HttpException {
  constructor(
    message = '失败',
    status = HttpStatus.BAD_REQUEST
  ) {
    super(
      {
        message,
        success: false,
        statusCode: status
      },
      HttpStatus.OK
    )
  }
}
